package com.guigu.common.mapper;


import com.guigu.chenjiajun.vo.MManufactureVo;
import com.guigu.chenjiajun.vo.MProcedureVo;
import com.guigu.chenjiajun.vo.ProceduringVo;
import com.guigu.common.pojo.*;
import com.guigu.common.vo.SearchVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MManufactureMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MManufacture record);

    int insertSelective(MManufacture record);

    MManufacture selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MManufacture record);

    int updateByPrimaryKey(MManufacture record);

    int insertReturnkey(MManufactureVo mProcedureVo);

    int insertProcedureReturnkey(MProcedureVo mProcedure);

    List queryProcedure(SearchVo searchVo);

    MManufactureVo viewAudit(String id);

    int DispatchingAudit(MManufacture mManufacture);

    List QueryDispatchOrder(SearchVo searchVo);

    MManufacture selectByManufactureId(String manufactureId);

    void insertPay_details(MProcedureModule procedureModule);

    List QueryRegister(SearchVo searchVo);

    void updateModule_subtotal(@Param("id") Integer id,@Param("sum") Integer sum);

    MManufactureVo registerDispatching(String id);

    List<MProcedureModule> queryProcedureModule(String id);

    List<MProcedureVo> queryProcedureByParentId(Integer id);

    MProcedureVo queryProcedureById(String id);

    void submitApplications(ProceduringVo proceduringVo);

    int insertProcedure_moduling(MProcedureModuling mProcedureModuling);

    void updatemProcedureModule(@Param("id") Integer id,@Param("amount") Integer amount);

    void updatemProcedureProcedureFinishTag(ProceduringVo proceduringVo);

    List queryProductionAudit(SearchVo searchVo);

    void updateManufactureProcedure_finish_tag(String manufactureId);

    void updateCheckmanufacture_procedure_tag(String manufactureId);

    void updateManufacturePriceSum(MManufacture mManufacture);

    MManufacture queryProcedureBymManufactureId(String manufactureId);

    Integer selectByModule_cost_price_sum(int manufactureId);

    void updateManufactureSubtotal(@Param("s") String s, @Param("sum") int sum);

}